<?php

class Password {
    public static function hashPassword($plaintext_password, $time) {
	global $Crypto;
	$password = $Crypto->sha256_encrypt($plaintext_password, $time);
	$parts = explode('$', $password);
	return $parts[4];
    }
}
?>
